﻿@namespace MudBlazor.Docs.Examples

@inject IDialogService DialogService

<MudButton OnClick="OpenDialog" Variant="Variant.Filled" Color="Color.Primary">
    Scrollable Dialog
</MudButton>

@code {
    bool license_accepted = false;

    async Task OpenDialog()
    {
        var result = await DialogService.Show<DialogScrollableExample_Dialog>("MudBlazor License").Result;

        if (!result.Cancelled)
        {
            license_accepted = (bool)(result.Data ?? false);
        }
    }
}
